﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>WinGetActiveTitle</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/commands.css" rel="stylesheet" type="text/css">
<link href="../css/print.css" rel="stylesheet" type="text/css" media="print">
</head>
<body>

<h1>WinGetActiveTitle</h1>

<p>获取当前激活窗口的标题。</p>

<p class="CommandSyntax">WinGetActiveTitle, OutputVar </p>
<h3>参数 </h3>
<table border="1" width="100%" cellspacing="0" cellpadding="3" bordercolor="#C0C0C0">
  <tr> 
    <td width="15%">OutputVar</td>
    <td width="85%">输出变量，存储当前激活窗口的标题。</td>
  </tr>
</table>

<h3>注意</h3>
<p>这个命令等同于：<a href="WinGetTitle.htm">WinGetTitle</a>, OutputVar, A</p>
<h3>相关命令</h3>
<p><a href="WinGetPos.htm">WinGetPos</a>, <a href="WinGetActiveStats.htm">WinGetActiveStats</a>, <a href="WinGetTitle.htm">WinGetTitle</a>, <a href="WinGetClass.htm">WinGetClass</a>, <a href="WinGetText.htm">WinGetText</a>, <a href="ControlGetText.htm">ControlGetText</a></p>
<h3>示例</h3>
<pre class="NoIndent">WinGetActiveTitle, Title
MsgBox, The active window is &quot;%Title%&quot;.</pre>

</body>
</html>
